<?php
header("Content-Type: text/xml");
echo "<data>";
foreach($view['mapdata'] as $mapdata)
	echo "<item id='$mapdata->id' name='$mapdata->what'><![CDATA[$mapdata->mapdata]]></item>\n";	
echo "</data>";
die();
?>
